package com.bgw.boot.dao;

import com.bgw.boot.entity.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author wg
 * @date 2020/9/6 21:51
 * @email 965178085@qq.com
 * @description
 */
public interface UserDao {

    @Select("select * from user")
    List<User> findAll();

    User findById(long id);

}
